Get First Land Based Receiver Events
/data-provider/events/first-land-based-receiver
As a Data Provider of iFoodDS, you use the iFoodDS First Land Based Receiver (FLBR) Event API to query FLBR event data from the iFoodDS Trace Exchange platform.
This endpoint is being refined and thus subject to change. These docs will update when changes are made.
Request
Type: application/json
Retrieving FLBR events via the API is done through paging. The request requires a series of query parameters which define the page that must be returned. These parameters must be supplied in the url when the get is executed in order to return the result set for the page being queried.
Query Parameters
Optional
page
(number): The page index of the events to return. The first page is index 0.size
(number): The number of results to return per page. Default value is 20.submitStartDateTime
(datetime): Filters results to include only events submitted after the specified date and time.submitEndDateTime
(datetime): Filters results to include only events submitted before the specified date and time.eventStartDateTime
(datetime): Filters results to include only events with an event date and time after the specified date and time.eventEndDateTime
(datetime): Filters results to include only events with an event date and time before the specified date and time.harvestLocationCode
(string): The exact location code of seafood harvesting for the event.receivedLocationCode
(string): The exact received location code for the event.receivedDocumentLineNumber
(string): The exact received document line number for the event.receivedItemCode
(string): The exact product received code for the event.
Data Constraints
Please note the following data constraints:
datetimes
must use the format:yyyy-MM-ddTHH:mm:ss
Response
- 200
- 400
Return result for the first land based receiver event data queried.
{
"content": [
{
"id": "<event id>",
"dataProviderVendorId": "<data provider vendor ID>",
"dataProviderVendorName": "<data provider vendor name>",
"eventDateTime": "<event date>",
"harvestDateStart": "<harvest start date>",
"harvestDateEnd": "<harvest end date>",
"documentNumber": "<document number>",
"harvestLocation": {
"id": "<location id>",
"gln": "<gln>",
"city": "<city>",
"duns": "<duns>",
"state": "<state>",
"market": "<market>",
"region": "<region>",
"country": "<country>",
"geoFence": "<geo fence>",
"postalCode": "<postal code>",
"phoneNumber": "<phone number>",
"businessUnit": "<business unit>",
"locationName": "<location name>",
"locationType": "<location type>",
"glnAssignedBy": "<gln assigned by>",
"gpsCoordinates": "<gps coordinates>",
"streetAddress1": "<street address 1>",
"streetAddress2": "<street address 2>",
"isCoveredByGdst": <is covered by gdst>,
"parentLocationId": "<parent location id>",
"isPrimaryLocation": <is primary location>,
"alternateLocationId": "<alternate location id>"
},
"receiveLocation": {
"id": "<location id>",
"gln": "<gln>",
"city": "<city>",
"duns": "<duns>",
"state": "<state>",
"market": "<market>",
"region": "<region>",
"country": "<country>",
"geoFence": "<geo fence>",
"postalCode": "<postal code>",
"phoneNumber": "<phone number>",
"businessUnit": "<business unit>",
"locationName": "<location name>",
"locationType": "<location type>",
"glnAssignedBy": "<gln assigned by>",
"gpsCoordinates": "<gps coordinates>",
"streetAddress1": "<street address 1>",
"streetAddress2": "<street address 2>",
"isCoveredByGdst": <is covered by gdst>,
"parentLocationId": "<parent location id>",
"isPrimaryLocation": <is primary location>,
"alternateLocationId": "<alternate location id>"
},
"foodReceived": [
{
"gtin": "<gtin>",
"isFtlItem": <is ftl item>,
"packSize": "<pack size>",
"packStyle": "<pack style>",
"brandName": "<brand name>",
"ftlCategory": "<ftl category>",
"innerPackUpc": "<inner pack upc>",
"productVariety": "<product variety>",
"scientificName": "<scientific name>",
"itemDescription": "<item description>",
"productCommodity": "<product commodity>",
"vendorItemCode": "<vendor item code>",
"alternateItemCode": "<alternate item code>",
"quantity": <quantity>,
"acceptableSpeciesName": "<acceptable species name>",
"caseGtin": "<case gtin>",
"productId": "<product id>",
"harvestDate": "<harvest date>",
"lotCode": "<lot code>",
"quantityUom": "<quantity uom>",
"documentLineNumber": "<document line number>",
"packagingDate": "<packaging date>",
"expirationDate": "<expiration date>",
"productionDate": "<production date>",
"bestBeforeDate": "<best before date>"
}
]
}
],
"empty": <is page empty>,
"first": <is first page>,
"last": <is last page>,
"number": <page number>,
"numberOfElements": <number of elements>,
"pageable": {
"empty": <is page empty>,
"offset": <offset size>,
"pageNumber": <page number>,
"pageSize": <page size>,
"paged": <is paged>,
"sort": {
"empty": <is page empty>,
"sorted": <is sorted>,
"unsorted": <is unsorted>
},
"unpaged": <is unpaged>
},
"size": <page size>,
"sort": {
"empty": <is empty>,
"sorted": <is sorted>,
"unsorted": <is unsorted>
},
"totalElements": <total elements>,
"totalPages": <total pages>
}
Content
id
(uuid): The id of the first land based receiver eventdataProviderVendorId
(string): The ID of the data providerdataProviderVendorName
(string): The name of the data providereventDateTime
(datetime): Date and time of the eventdocumentNumber
(string): The document number for the first land based receiver eventharvestDateStart
(string): Date when harvesting of seafood began.harvestDateEnd
(string): Date when harvesting of seafood was completed.harvestLocation
(object): The harvest location for the first land based receiver event (see Location object structure)receiveLocation
(object): The receiving location for the first land based receiver event (see Location object structure)foodReceived
(array): Array of Foods Receivedgtin
(string): Case-level Global Trade Identification Number (GTIN-14). GS1 GTIN Executive SummaryisFtlItem
(boolean): Indicates if the item is on the Food Traceability ListpackSize
(string): Size of the packpackStyle
(string): Style of the packbrandName
(string): Brand nameftlCategory
(string): Category on the Food Traceability ListinnerPackUpc
(string): Point of sale barcode, may be GTIN-8, GTIN-12, GTIN-13, or GTIN-14. GS1 GTIN Executive SummaryproductVariety
(string): Variety of the productscientificName
(string): Scientific nameitemDescription
(string): Description of the itemproductCommodity
(string): Commodity of the productvendorItemCode
(string): This is the item code / product id provided by the supplieralternateItemCode
(string): Alternate item codequantity
(number): Quantity producedacceptableSpeciesName
(string): Acceptable species namecaseGtin
(string): GTIN of the caseproductId
(string): Product IDharvestDate
(date): Harvest datelotCode
(string): Lot codequantityUom
(string): Unit of measure for the quantitydocumentLineNumber
(string): Received document line numberpackagingDate
(date): Packaging dateexpirationDate
(date): Expiration dateproductionDate
(date): Production datebestBeforeDate
(date): Best before datevendorItemCode
(string): This is the item code / product id provided for the supplier
Location Object
The location
object contains information about the location where the first land based receiver event occurred:
id
(string): Location identifiergln
(string): GS1 Global Location Number, a 13-digit string. GS1 GTIN Executive Summarycity
(string): City of the locationduns
(string): DUNS numberstate
(string): State of the locationmarket
(string): Market identifierregion
(string): Region identifiercountry
(string): Country of the locationgeoFence
(string): Geo-fence coordinatespostalCode
(string): Postal codephoneNumber
(string): Phone numberbusinessUnit
(string): Business unit identifierlocationName
(string): Name of the locationlocationType
(string): Type of the locationglnAssignedBy
(string): Entity that assigned the GLNgpsCoordinates
(string): GPS coordinatesstreetAddress1
(string): Primary street addressstreetAddress2
(string): Secondary street addressisCoveredByGdst
(boolean): Indicates if the location is covered by GDSTparentLocationId
(string): Parent location IDisPrimaryLocation
(boolean): Indicates if this is the primary locationalternateLocationId
(string): Alternate location ID
Pageable
pageable
(object)pageNumber
(number): The current page number in the page series. Index 0 is first pagepageSize
(number): The number of events contained in the pageoffset
(number): If there is an offset specified on there return results this will be populates. Default is 0unpaged
(boolean): If the record set is unpaged then true else falsepaged
(boolean): If the record set is paged then true else falsesort
(object)unsorted
(boolean): If the record set is unsorted then true else falsesorted
(boolean): If the record set is sorted then true else falseempty
(boolean): If the record set is empty then true else false
totalPages
(number): The total amount of pages that contain all events in the querytotalElements
(number): The total amount of events in the querylast
(boolean): If the page is the last in the series then true else falsenumberOfElements
(number): The total amount of events in the tablesize
(number): The number of events contained in the pagenumber
(number): The current page number in the page seriessort
(object)unsorted
(boolean): If the record set is unsorted then true else falsesorted
(boolean): If the record set is sorted then true else falseempty
(boolean): If the record set is empty then true else false
first
(boolean): If the page is the first in the series then true else falseempty
(boolean): If the page is empty then true else false
Description of what user-fixable validation error occurred and in what part of the payload
{
"timestamp": "2024-12-08T20:47:54.096+00:00",
"status": 400,
"error": "Bad Request",
"message": "<error description>"
}